<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人简介</title>
    <META  HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="app-mobile-web-app-capable" content="yes" />
    <meta name="app-mobile-web-app-status-bar-style" content="black-translucent" />
    <link rel="stylesheet" href="//at.alicdn.com/t/font_772560_35ruin6tsb5.css">
    <link rel="stylesheet" href="css/brief-intro.css">
    <script src="js/jquery.min.js"></script>
</head>
<body>
    <div class="brief-intro">
        <textarea rows="10" name="intro" value="" required placeholder="在这里输入个性签名" id="intro"></textarea>
    </div>
  <button class="submit" onclick="submitFrom()">保存</button>
<script>
    let  id = sessionStorage.getItem('login_identifier');
    $(document).ready(function () {
        $.ajax({
            type: "POST",
            url: "https://qyim.ec51.com/v1/check/personal-introduce",
            data:{
               id:id,
                access:sessionStorage.getItem('access')
            },
            success: res=> {
                $('#intro').val(res.data)
            },
        })
    });

  function submitFrom() {
      $.ajax({
          type: "POST",
          url: "https://qyim.ec51.com/v1/check/personal-introduce",
          data:{
              id:id,
              personal_introduce:$('#intro').val(),
          },
          success: function (data) {

//            window.location.href('mine.html')
              history.back(-1)

          },
      })
  }
</script>
</body>
</html>